import connector from '../connector.js'
//登录接口
export function login(data) {
    return connector({
        method: 'POST',
        url: '/login',
        data
    })
}
//学生列表查询
export function students(params) {
    return connector({
        method: 'GET',
        url: '/students',
        params
    })
}
//学生列表删除
export function studentsDel(id) {
    return connector({
        method: 'delete',
        url: `students/${id}`,
    })
}
//作业列表
export function getInfo() {
    return connector({
        method: 'get',
        url: '/info',
    })
}
//数据概览
export function dataView(){
    return connector({
        method: 'get',
        url: '/dataview',
    })
}

//旅游地图接口
export function travel(){
    return connector({
        method: 'get',
        url: '/travel',
    })
}

